package com.itclass.auth.constant;

public class AuthServerConstants {

    public static final String lockScript = "if redis.call('SETNX', KEYS[1], ARGV[1]) == 1 then\n" +
            "    redis.call('EXPIRE', KEYS[1], ARGV[2])\n" +
            "    return true\n" +
            "else\n" +
            "    return false\n" +
            "end";

    public static final String incrScript = "local currentValue = redis.call('incr', KEYS[1])\n" +
            "if currentValue == 1 then\n" +
            "    redis.call('expire', KEYS[1], ARGV[1])\n" +
            "end\n" +
            "return currentValue";

    /**
     * 每天登录的失败次数
     */
    public  static final int LoginFailCount  =5;
    public  static final String LoginFailTime  ="86400";

}
